﻿using PropertyExpression.ControllableQuery;

namespace ClassLibrary1
{
    public class Class1
    {
        public static QFragment TargetTagNames(Param<int> userId, Param<int> tagScoreRequiredToVote)
        {
            return new {userId, tagScoreRequiredToVote}.QFragment(@"
SELECT  Name
FROM    Tags
WHERE   Id IN (SELECT   Id
               FROM     UserTagTotals
               WHERE    UserId = @userId
                        AND TotalAnswerScort > @tagScoreRequiredToVote)");
        }
    }
}
